﻿<Window x:Class="Demos.ShortestPaths.Dijkstra.View"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Dijkstra" Height="500" Width="550" Name="view"
        xmlns:dijkstra="clr-namespace:Demos.ShortestPaths.Dijkstra">
    
    <DockPanel>
        <Grid DockPanel.Dock="Bottom" Margin="5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Button Grid.Column="0" Margin="5" Command="{Binding VerSolucionCommand}">Ver Solucion</Button>
            <Button Grid.Column="1" Margin="5"  Command="{Binding ResolverCommand}">Resolver</Button>
            <Button Grid.Column="2" Margin="5" Command="{Binding AvanzarCommand}">Step</Button>
            <Button Grid.Column="3" Margin="5" Command="{Binding PararCommand}">Parar</Button>
        </Grid>

        <dijkstra:ArbolUserControl 
            ContenidoVisual="{Binding Mapa, UpdateSourceTrigger=PropertyChanged}"
            DataContext="{Binding ElementName=view, Path=DataContext}"/>
    </DockPanel>
</Window>
